package edu.sctu.xuping.month06.goodstest;


/**
 * Created by user02 on 2015/6/28.
 */
public class PriceDataUtil {

    public void priceDataUtil(GoodsAppbean goodsData) {

        int overprice = 0;
        int lessprice = 0;

        for (int i = 0; i < goodsData.list.size(); i++) {

            double price = new Double(goodsData.list.get(i).goods_price);
            if (price > 100) {
                overprice++;
            } else {
                lessprice++;
            }
        }

        System.out.println("商品价格大于100的商品数量为：" + overprice);
        System.out.println("商品价格大于100的商品数量为：" + lessprice);
    }

}
